#ifndef EPISODE_NAME_PARSER_H
#define EPISODE_NAME_PARSER_H

#include <string>

namespace Tvimeg
{
	class EpisodeNameParser
	{
	public:
		EpisodeNameParser(void);

		bool	Parse(const std::string& name);

		int		GetSeason(void) const	{ return season; }
		int		GetEpisode(void) const	{ return episode; }

	private:
		int		GetInt(const std::string& string, const int startIndex, const int endIndex) const;

		int		season;
		int		episode;
	};
}

#endif // EPISODE_NAME_PARSER_H
